package com.jr.controller;


import com.jr.entity.Enterprise;
import com.jr.service.EnterpriseService;
import com.jr.service.UserJobEnterpriseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;


/**
 * 企业表
 *
 * @author Snoopy
 * @since 1.0.0 2022-12-31
 */
@Controller
@SuppressWarnings("all")
public class EnterpriseController {
    @Autowired
    private EnterpriseService enterpriseService;
    @Autowired
    private UserJobEnterpriseService userJobEnterpriseService;

    @GetMapping("selectEnterprise")
    public ModelAndView queryenterpriseobject(int eid){
        ModelAndView modelAndView=new ModelAndView();
        Enterprise enterprise=enterpriseService.selectEnterprise(eid);
        modelAndView.addObject("enterprise",enterprise);
        modelAndView.setViewName("company.jsp");
        return modelAndView;
    }

}